package com.jdc.entity;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.ColType;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;
import org.nutz.json.Json;
import java.util.Date;
import java.math.*;

@Table("t_role_permission")
public class TRolePermission {
	/**
	* 主键ID
	*/
	@Name
	@Column("id")
	@ColDefine(notNull=false, type=ColType.VARCHAR, width=32)
	@Comment(value="主键ID")
	private String id;
	/**
	* 角色ID
	*/
	@Column("role_id")
	@ColDefine(notNull=true, type=ColType.VARCHAR, width=32)
	@Comment(value="角色ID")
	private String roleId;
	/**
	* 权限ID
	*/
	@Column("perm_id")
	@ColDefine(notNull=true, type=ColType.VARCHAR, width=32)
	@Comment(value="权限ID")
	private String permId;

	/**
	* 主键ID
	*/
	public String getId() {
		return id;
	}
	/**
	* 主键ID
	*/
	public void setId(String id) {
		this.id = id;
	}
	/**
	* 角色ID
	*/
	public String getRoleId() {
		return roleId;
	}
	/**
	* 角色ID
	*/
	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}
	/**
	* 权限ID
	*/
	public String getPermId() {
		return permId;
	}
	/**
	* 权限ID
	*/
	public void setPermId(String permId) {
		this.permId = permId;
	}

	@Override
	public String toString() {
		return Json.toJson(this);
	}
}
